package com.ruoyi.material.domain;

import com.ruoyi.common.constant.material.PurchaseConstants;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 食品类型对象 tb_food_type
 *
 * @author wng
 * @date 2024-08-04
 */
public class FoodType extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private Long id;

    /**
     * 部门id
     */
    private Long deptId;

    /**
     * 食品类型
     * Food 食品
     * FoodFarm 食用农产品
     * FoodAdd 食品添加剂
     * FoodRelate 食品相关
     */
    @Excel(name = "食品类型 Food 食品 " +
            "FoodFarm 食用农产品 " +
            "FoodAdd 食品添加剂 " +
            "FoodRelate 食品相关")
    private PurchaseConstants.FoodTypeEnum parentType;

    /**
     * 子食品类型
     */
    @Excel(name = "子食品类型")
    private String typeName;

    /**
     * 0正常 1删除
     */
    private Integer delFlag;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public PurchaseConstants.FoodTypeEnum getParentType() {
        return parentType;
    }

    public void setParentType(PurchaseConstants.FoodTypeEnum parentType) {
        this.parentType = parentType;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("parentType", getParentType())
                .append("typeName", getTypeName())
                .append("delFlag", getDelFlag())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
